<template>
  <div>
    <Return txt="聊天详情" style="background: #eeeeee"></Return>
    <div class="list">
      <div class="listOne" v-for="item of list" @click="peoplemoreTap">
        <img class="list_img" src="../../assets/images/logo.png" alt="" />
        <span>测试人员</span>
      </div>
      <div class="listOne" @click="addTap">
        <div class="add">+</div>
      </div>
    </div>
    <div class="row" @click="chakanTap">
      <div class="rowOne">查找聊天内容</div>
      <div class="rowtwo">
        <van-icon style="margin-left: 10px" name="arrow" />
      </div>
    </div>
    <div class="row" style="border-bottom: none">
      <div class="rowOne">消息免打扰</div>
      <div class="rowtwo">
        <van-switch v-model="checked" />
      </div>
    </div>
    <div class="row">
      <div class="rowOne">顶置聊天</div>
      <div class="rowtwo">
        <van-switch v-model="checked1" />
      </div>
    </div>
    <div class="row" @click="shezhiTap">
      <div class="rowOne">设置当前聊天背景</div>
      <div class="rowtwo">
        <van-icon style="margin-left: 10px" name="arrow" />
      </div>
    </div>
    <div class="row" @click="qingkongTap">
      <div class="rowOne">清空聊天记录</div>
      <div class="rowtwo">
        <van-icon style="margin-left: 10px; color: white" name="arrow" />
      </div>
    </div>
    <div class="row" @click="jubaoTap">
      <div class="rowOne">举报</div>
      <div class="rowtwo">
        <van-icon style="margin-left: 10px" name="arrow" />
      </div>
    </div>
        <van-overlay
      :show="show"
      @click="show = false"
      style="background: rgba(30, 30, 30, 0.5)"
    >
      <div class="wrapper" @click.stop>
        <div class="block">
          <div class="blockOne block1">清空聊天记录</div>
          <div class="blockOne" @click="show = false">取消</div>
        </div>
      </div>
    </van-overlay>
  </div>
</template>
<script>
import Return from "../../components/return";
export default {
  components: {
    Return,
  },
  data() {
    return {
      list: [1],
      checked: false,
      checked1: false,
      show:false
    };
  },
  methods: {
    addTap() {
      this.$router.push("/qunliao");
    },
    peoplemoreTap() {
      this.$router.push("/head");
    },
    chakanTap() {},
    qingkongTap() {
      this.show=true
    },
    shezhiTap() {
      this.$router.push("/bg");
    },
    jubaoTap() {
      this.$router.push("/tousu");
    },
  },
};
</script>
<style scoped>
.list {
  width: 95%;
  padding-left: 5%;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 5px solid #f1f1f1;
}
.listOne {
  width: 20%;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 12px;
  color: #989898;
  margin-top: 10px;
}
.list_img {
  width: 50px;
  height: 50px;
  border-radius: 5px;
}
.add {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  border: 1.5px dashed #ccc;
  font-size: 30px;
  text-align: center;
  line-height: 50px;
}
.more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  color: #959494;
  font-size: 16px;
  width: 100%;
  border-bottom: 5px solid #f1f1f1;
}
.row {
  height: 50px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 5px solid #eeeeee;
}
.row1 {
  height: 70px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.rowtwo {
  display: flex;
  align-items: center;
}
.rowtwo {
  color: #9d9d9d;
}
.rowtwo img {
  width: 30px;
  height: 30px;
}
.block {
  height: 140px;
  width: 100%;
  position: fixed;
  right: 0px;
  bottom: 0px;
  z-index: 100;
  background: rgba(255, 255, 255, 1);
  border-radius: 5px;
  z-index: 999;
}
.blockOne {
  height: 68px;
  width: 100%;
  text-align: center;
  line-height: 68px;
}
.block1 {
  /* border-bottom: 1px solid #bebebe; */
  color: red;
}
</style>